package com.hm.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.hm.model.Employee;


@Mapper
public interface EmployeeMapper {
	
//	@Select("select * from employee")
	public List<Employee> findAll();// List<Map<String, Object>>
	
	public List<Employee> findAllTwo();
	
	public Object findByDeptId();
	
//	@Insert("insert into employee (u_name,u_phone,u_age) values (#{name},#{phone},#{age})")
	public Long insert(@Param("id")Integer id,@Param("uName")String name,@Param("uPhone")Integer phone,@Param("uAge")Integer age,@Param("u_salary")Double uSalary,@Param("jiangjin")Double jiangjin);
	
	
//	@Update("update employee set + u_name=#{name}, u_phone=#{phone},u_age=#{age} where id=#{id}")
	public boolean update(Map<String, Object> map);

//	@Delete("delete from employee where id=#{id}")
	public boolean delete(@Param("0123456789")int id);

	public Employee findById(@Param("123")String Key);
}
